package com.chaos.framework.web.dto.login.app;

import com.chaos.framework.model.dto.login.LoginUser;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class AppLoginUser extends LoginUser {
    private String token;
    private String username;
    private String phone;


    public AppLoginUser(Long id, String token, String username, String phone) {
        this.setId(id);
        this.token = token;
        this.username = username;
        this.phone = phone;
    }

    public static AppLoginUser of(Long id, String token, String username, String phone) {
        return new AppLoginUser(id, token, username, phone);
    }
}
